import request from '@/utils/request'

// 查询BI关系配置列表
export function listBiTableRelationshipConfig(query) {
  return request({
    url: '/conf/BiTableRelationshipConfig/list',
    method: 'get',
    params: query
  })
}
// 查询BI关系配置列表
export function selectRemarkList(query) {
  return request({
    url: '/conf/BiTableRelationshipConfig/selectRemarkList',
    method: 'get',
    params: query
  })
}
// 查询BI关系配置列表
export function selectBusinessNameList(query) {
  return request({
    url: '/conf/BiTableRelationshipConfig/selectBusinessNameList',
    method: 'get',
    params: query
  })
}
// 查询BI关系配置列表
export function selectTableRelationshipConfigFields(query) {
  return request({
    url: '/conf/BiTableRelationshipConfig/selectTableFields/'+query,
    method: 'get',
    
  })
}
// 查询BI关系配置详细
export function getBiTableRelationshipConfig(id) {
  return request({
    url: '/conf/BiTableRelationshipConfig/' + id,
    method: 'get'
  })
}

// 新增BI关系配置
export function addBiTableRelationshipConfig(data) {
  return request({
    url: '/conf/BiTableRelationshipConfig',
    method: 'post',
    data: data
  })
}
// // 新增BI关系配置
// export function selectTableRelationshipConfigFields(data) {
//   return request({
//     url: '/conf/BiTableRelationshipConfig/selectTableFields',
//     method: 'post',
//     data: data
//   })
// }
// 新增BI关系配置
export function processData(data) {
  return request({
    url: '/conf/BiTableRelationshipConfig/processData',
    method: 'post',
    data: data
  })
}
// 修改BI关系配置
export function updateBiTableRelationshipConfig(data) {
  return request({
    url: '/conf/BiTableRelationshipConfig',
    method: 'put',
    data: data
  })
}

// 删除BI关系配置
export function delBiTableRelationshipConfig(id) {
  return request({
    url: '/conf/BiTableRelationshipConfig/' + id,
    method: 'delete'
  })
}
